# Contributor: Carbon Jiao <carbonjiao at gmail dot com>
pkgname=pyneighborhood-svn
pkgver=389
pkgrel=1
url="http://svn.stefan-betz.net/pyneighborhood/trunk/"
pkgdesc="A GTK+ 2 rewrite of the well-known LinNeighborhood tool svn version"
license=('GPL2')
provides=('pyneighborhood')
conflicts=('pyneighborhood')
depends=('python>=2.3' 'python-distutils-extra' 'pygtk>=2.6' 'samba>=3.0' 'gettext>=0.16')
install=pyneighborhood.install
arch=('i686' 'x86_64')
source=()
md5sums=()

_svntrunk=http://svn.stefan-betz.net/pyneighborhood/trunk/
_svnmod=pyneighborhood

build() {
	cd ${startdir}/src
	# Source
	msg "SVN checkout..."
	svn co $_svntrunk --config-dir ./ $_svnmod/
	msg "SVN checkout done or the server timed out"

        cd $_svnmod/
        
        patch -p0 < $startdir/zh_CN.patch
        patch -p0 < $startdir/shortcutcn.patch
        cd po/
        make DESTDIR=$startdir/pkg install || return 1

        cd ../
  	python setup.py build  || return 1
  	#python setup.py install --prefix=/usr --root= $startdir/pkg
  	python setup.py install --root=$startdir/pkg
}

